package cn.fly.chatgpt.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class Ans {

    private String answer;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime ansTime;

    public Ans(String answer, LocalDateTime ansTime) {
        this.answer = answer;
        this.ansTime = ansTime;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public LocalDateTime getAnsTime() {
        return ansTime;
    }

    public void setAnsTime(LocalDateTime ansTime) {
        this.ansTime = ansTime;
    }

    @Override
    public String toString() {
        return "Ans{" +
                "answer='" + answer + '\'' +
                ", ansTime=" + ansTime +
                '}';
    }
}
